import 'package:flutter_deer/generated/json/base/json_convert_content.dart';
import 'package:flutter_deer/database/beans/get_zero_model_entity.dart';
import 'package:flutter_deer/res/constant.dart';

import 'package:sp_util/sp_util.dart';


GetZeroModelEntity $GetZeroModelEntityFromJson(Map<String, dynamic> json) {
  final GetZeroModelEntity getZeroModelEntity = GetZeroModelEntity();
  final int? type = jsonConvert.convert<int>(json['type']);
  if (type != null) {
    getZeroModelEntity.type = type;
  }
  return getZeroModelEntity;
}

Map<String, dynamic> $GetZeroModelEntityToJson(GetZeroModelEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['type'] = entity.type;
  return data;
}

extension GetZeroModelEntityExtension on GetZeroModelEntity {
  GetZeroModelEntity copyWith({
    int? type,
  }) {
    return GetZeroModelEntity()
      ..type = type ?? this.type;
  }
}